package com.ruoyi.ncpsy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 浇灌与作物关联对象 ncpsy_irrigation_crop
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
public class NcpsyIrrigationCrop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long waterCropId;

    /** 作物事件ID */
    @Excel(name = "作物事件ID")
    private Long cropEventId;

    /** 水源ID */
    private Long waterSourceId;

    /** 浇灌时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浇灌时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date irrigationTime;

    /** 浇灌水量 */
    private BigDecimal irrigationVolume;

    /** 浇灌水量单位 */
    private String volumeUnit;

    /** 浇灌图片 */
    @Excel(name = "浇灌图片")
    private String irrigatImg;

    /** 浇灌方法 */
    @Excel(name = "浇灌方法")
    private String irrigationMethod;

    /** 浇灌面积 */
    private BigDecimal irrigationArea;

    /** 浇灌前湿度 */
    private BigDecimal humidityBefore;

    /** 浇灌后湿度 */
    private BigDecimal humidityAfter;

    /** 交易哈希 */
    private String hash;

    /** 操作人 */
    private String operator;

    private int  userId;

    public void setWaterCropId(Long waterCropId) 
    {
        this.waterCropId = waterCropId;
    }

    public Long getWaterCropId() 
    {
        return waterCropId;
    }

    public void setCropEventId(Long cropEventId) 
    {
        this.cropEventId = cropEventId;
    }

    public Long getCropEventId() 
    {
        return cropEventId;
    }

    public void setWaterSourceId(Long waterSourceId) 
    {
        this.waterSourceId = waterSourceId;
    }

    public Long getWaterSourceId() 
    {
        return waterSourceId;
    }

    public void setIrrigationTime(Date irrigationTime) 
    {
        this.irrigationTime = irrigationTime;
    }

    public Date getIrrigationTime() 
    {
        return irrigationTime;
    }

    public void setIrrigationVolume(BigDecimal irrigationVolume) 
    {
        this.irrigationVolume = irrigationVolume;
    }

    public BigDecimal getIrrigationVolume() 
    {
        return irrigationVolume;
    }

    public void setVolumeUnit(String volumeUnit) 
    {
        this.volumeUnit = volumeUnit;
    }

    public String getVolumeUnit() 
    {
        return volumeUnit;
    }

    public void setIrrigatImg(String irrigatImg) 
    {
        this.irrigatImg = irrigatImg;
    }

    public String getIrrigatImg() 
    {
        return irrigatImg;
    }

    public void setIrrigationMethod(String irrigationMethod) 
    {
        this.irrigationMethod = irrigationMethod;
    }

    public String getIrrigationMethod() 
    {
        return irrigationMethod;
    }

    public void setIrrigationArea(BigDecimal irrigationArea) 
    {
        this.irrigationArea = irrigationArea;
    }

    public BigDecimal getIrrigationArea() 
    {
        return irrigationArea;
    }

    public void setHumidityBefore(BigDecimal humidityBefore) 
    {
        this.humidityBefore = humidityBefore;
    }

    public BigDecimal getHumidityBefore() 
    {
        return humidityBefore;
    }

    public void setHumidityAfter(BigDecimal humidityAfter) 
    {
        this.humidityAfter = humidityAfter;
    }

    public BigDecimal getHumidityAfter() 
    {
        return humidityAfter;
    }

    public void setHash(String hash) 
    {
        this.hash = hash;
    }

    public String getHash() 
    {
        return hash;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return "NcpsyIrrigationCrop{" +
                "waterCropId=" + waterCropId +
                ", cropEventId=" + cropEventId +
                ", waterSourceId=" + waterSourceId +
                ", irrigationTime=" + irrigationTime +
                ", irrigationVolume=" + irrigationVolume +
                ", volumeUnit='" + volumeUnit + '\'' +
                ", irrigatImg='" + irrigatImg + '\'' +
                ", irrigationMethod='" + irrigationMethod + '\'' +
                ", irrigationArea=" + irrigationArea +
                ", humidityBefore=" + humidityBefore +
                ", humidityAfter=" + humidityAfter +
                ", hash='" + hash + '\'' +
                ", operator='" + operator + '\'' +
                ", userId=" + userId +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

}
